package com.jd.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.jd.basic.domain.BaseDomain;
import com.jd.system.domain.Role;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;


import java.util.ArrayList;
import java.util.List;

@Data
@Getter
@Setter
public class Employee extends BaseDomain {

    private String username;
    private Long phone;
    private String email;
    private String salt;
    private String password;
    private Long age;
    private Integer state=1;

    private Long department_id;
    private Department department;
    private Long logininfo_id;

    private Long shop_id;
    private Shop shop;

    private Long roleId;
    private Role role;
    //上级部门ID - 对应t_department

    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Employee> children = new ArrayList<>();
}
